*************************************************************
* The following code is part of the replication archive of  * 
* Genovese, Kern & Martin (2016) "Policy Alternation", ISQ  * 
*************************************************************

* The code that follows replicate the OLS models with spatial lags. 

*******************************************
* Close countries:  Results in Table A.1  *
*******************************************

use "/Users/.../gkm_replication_isq/green taxes and subsidies/OECD subsidies lag.dta", clear

* OLS - contiguous countries 
reg greentax_pc_cons   lag_gtax_pc_cons   l_subsidy_rgdppc   rgdppc rgdppcsq  unemp  unempsq  i_itax_per_cap  actual_economic_flows  rile_const_w env_const_w   env_const_w_sq  green_party en_prod_rgdp     sl_gled_tax   sl_igo_tax  sl_dtrade_tax  
eststo D0
reg greentax_pc_cons   lag_gtax_pc_cons   l_subsidy_rgdppc   rgdppc rgdppcsq  unemp  unempsq  i_itax_per_cap  actual_economic_flows  rile_const_w env_const_w   env_const_w_sq  green_party en_prod_rgdp     sl_gled_tax   sl_igo_tax  sl_dtrade_tax l_sl_neigh_subsidy_rgdppc  
eststo D1
reg greentax_pc_cons   lag_gtax_pc_cons   l_subsidy_rgdppc   rgdppc rgdppcsq  unemp  unempsq  i_itax_per_cap    rile_const_w env_const_w   env_const_w_sq  green_party en_prod_rgdp     sl_gled_tax   sl_igo_tax  sl_dtrade_tax c.l_sl_neigh_subsidy_rgdppc##c.actual_economic_flows 
eststo D2
